from var import core


def new_process(win, arrival, work, ui_main):
    win.close()
    core.addJCB(arrival, work)

    ui_main.refreshInit(core.getJCBList())
